Skip to content

Conversation

@Lash-L
Copy link
Collaborator

@Lash-L Lash-L commented Dec 29, 2025

#715 was targeted not on main. Cherry picked for here.

anotherdave and others added 2 commits December 29, 2025 09:56
* #392 fix wind and water mappings for Q7

Based on actual values sent by Android app 4.54.02, robot firmware V03.01.71

* Fix lint

---------

Co-authored-by: anotherdave <anotherdave@no-reply.github.com>
@codecov
Copy link

codecov bot commented Dec 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
roborock/data/b01_q7/b01_q7_code_mappings.py 100.00% <100.00%> (ø)
tests/data/b01_q7/test_b01_q7_containers.py 100.00% <100.00%> (ø)
tests/devices/traits/b01/q7/test_init.py 100.00% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the wind and water mappings for the Roborock Q7 (B01) device by correcting the numeric values in the enum mappings. The changes shift enum values to start from 1 instead of 0, matching the actual API values returned by the device.

Key changes:

  • Updated SCWindMapping enum values (shifted from 0-3 to 1-4, added new value 5 for SUPER_STRONG_PLUS)
  • Updated WaterLevelMapping enum values (shifted from 0-2 to 1-3)
  • Updated corresponding test cases to reflect the new mapping values

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
roborock/data/b01_q7/b01_q7_code_mappings.py Updated SCWindMapping and WaterLevelMapping enum values to match actual device API responses
tests/devices/traits/b01/q7/test_init.py Updated test data and comments to use correct wind value (2 for STANDARD)
tests/data/b01_q7/test_b01_q7_containers.py Updated assertion to expect STRONG instead of SUPER_STRONG for wind value 3

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@allenporter allenporter merged commit 421a9c4 into main Dec 29, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants